package xyz.chenyongpeng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import xyz.chenyongpeng.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 优惠券使用历史记录
 * </p>
 *
 * @author chenyongpeng
 * @since 2018-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="ZsCouponHistory对象", description="优惠券使用历史记录")
public class ZsCouponHistory extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ch_id", type = IdType.AUTO)
    private Integer chId;

    @ApiModelProperty(value = "优惠券ID")
    private Integer codeId;

    @ApiModelProperty(value = "行为或结果（文字描述）")
    private String txBehavior;

    @ApiModelProperty(value = "用户账户ID")
    private Integer uId;

    @ApiModelProperty(value = "发券/用券1：发券  2：用券")
    private Integer isSendUsed;

    @ApiModelProperty(value = "操作时间")
    private Integer addTime;

    @ApiModelProperty(value = "订单id")
    private Integer oId;


}
